package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DepositLogMapper;
import com.ruoyi.system.domain.DepositLog;
import com.ruoyi.system.service.IDepositLogService;
import com.ruoyi.common.support.Convert;

/**
 * 信用卡委托记录 服务层实现
 * 
 * @author ruoyi
 * @date 2019-05-11
 */
@Service
public class DepositLogServiceImpl implements IDepositLogService 
{
	@Autowired
	private DepositLogMapper depositLogMapper;

	/**
     * 查询信用卡委托记录信息
     * 
     * @param id 信用卡委托记录ID
     * @return 信用卡委托记录信息
     */
    @Override
	public DepositLog selectDepositLogById(Integer id)
	{
	    return depositLogMapper.selectDepositLogById(id);
	}
	
	/**
     * 查询信用卡委托记录列表
     * 
     * @param depositLog 信用卡委托记录信息
     * @return 信用卡委托记录集合
     */
	@Override
	public List<DepositLog> selectDepositLogList(DepositLog depositLog)
	{
	    return depositLogMapper.selectDepositLogList(depositLog);
	}
	
    /**
     * 新增信用卡委托记录
     * 
     * @param depositLog 信用卡委托记录信息
     * @return 结果
     */
	@Override
	public int insertDepositLog(DepositLog depositLog)
	{
	    return depositLogMapper.insertDepositLog(depositLog);
	}
	
	/**
     * 修改信用卡委托记录
     * 
     * @param depositLog 信用卡委托记录信息
     * @return 结果
     */
	@Override
	public int updateDepositLog(DepositLog depositLog)
	{
	    return depositLogMapper.updateDepositLog(depositLog);
	}

	/**
     * 删除信用卡委托记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDepositLogByIds(String ids)
	{
		return depositLogMapper.deleteDepositLogByIds(Convert.toStrArray(ids));
	}
	
}
